package stage1;
//三角形的面积
public class Triangle extends Shape {
    public double n;
    public double m;

    @Override
    public double calArea() {
        return n*m/2;
    }
    public Triangle (double n,double m){
        this.n=n;
        this.m=m;
    }
}
